﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 出库表
    /// </summary>
    public class Outbound
    {
        /// <summary>
        /// 出库单唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int OutboundID {  get; set; }
        /// <summary>
        /// 出库单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string OutboundCode { get; set; }
        /// <summary>
        /// 出库单类型
        /// </summary>
        public OutboundType Type { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string OrderCode { get; set; }
        /// <summary>
        /// 供应商编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SupplierCode { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ContactPerson { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Phone { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [MaxLength(255)]
        public string Remarks { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public WarehouseOutStatus Status { get; set; }

        /// <summary>
        /// 是否删除(1-删除 0-正常)
        /// </summary>
        public bool IsDeleted { get; set; }











    }
}
